﻿using System.Windows.Forms;
using System.ComponentModel;
using System;

namespace UtfprLibrary.Windows.Forms {
    public static class FormHelper {
        public static void CreateAndShowForm<T>() where T : Form {
            new UtfprFormProgress(new DoWorkEventHandler(
                delegate { (Activator.CreateInstance<T>() as Form).ShowDialog(); }
            )).ShowDialog();
        }
    }
}